package com.project.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.server.dto.MedicalAdviceDTO;
import com.project.server.dto.MedicalRecordDTO;
import com.project.server.entity.DoctorAppointment;
import com.project.server.dto.ScheduleDTO;
import com.project.server.entity.HealthRecord;
import com.project.server.entity.SysUser;
import com.project.server.vo.doctor.DoctorVO;

import java.util.List;
import java.util.Map;
import java.time.LocalDate;

public interface DoctorService {

    // 保存医生信息
    Boolean saveDoctor(DoctorVO doctorVO);

    // 更新医生信息
    Boolean updateDoctor(DoctorVO doctorVO);

    // 删除医生
    Boolean removeById(Long id);

    // 获取医生信息
    SysUser getDoctorInfo(Long doctorId);


    // 获取患者健康记录
    List<HealthRecord> getPatientHealthRecords(Long patientId);

    // 获取预约列表
    IPage<DoctorAppointment> getAppointmentList(Long doctorId, Integer status, Integer current, Integer size);

    // 更新预约状态
    boolean updateAppointmentStatus(Long id, Integer status);

    // 更新就诊记录
    void updateAppointmentRecord(Long id, String diagnosis, String prescription);


    List<Map<String, Object>> getTodayAppointments(Long doctorId);






}
